#!/bin/sh

set -e

systemctl daemon-reload || :

if [ "$1" = "remove" ] ; then
  rm -f /lib/systemd/system/faktory.service
fi

if [ "$1" = "purge" ] ; then
  rm -rf /etc/faktory
fi
